Expand description

Encodes and decodes bencoded structures.

The decoder is explicitly designed to be zero-copy as much as possible, and to not accept any sort of invalid encoding in any mode (including non-canonical encodings)

The encoder is likewise designed to ensure that it only produces valid structures.

Modules

Decodes a bencoded struct

An encoder for bencode. Guarantees that the output string is valid bencode

Serde Serialization and Deserialization

Values hold arbitrary borrowed or owneed bencode data. Unlike Objects, they can be cloned and traversed multiple times.